DialogCompat

open class DialogCompat(source)

Helper for accessing features in android.app.Dialog in a backwards compatible fashion.

Functions

Link copied to clipboard
@NonNull
open fun requireViewById(@NonNull dialog: @NonNull Dialog, id: Int): @NonNull View
Finds the first descendant view with the given ID or throws an IllegalArgumentException if the ID is invalid (< 0), there is no matching view in the hierarchy, or the dialog has not yet been fully created (for example, via show or create).